package com.uzai.console.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.uzai.console.dto.wechatwork.wxq.welcome.WxqWorkGroupWelcomeQuery;
import com.uzai.console.entity.WxqWorkGroupWelcome;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WxqWorkGroupWelcomeMapper {

    int deleteById(@Param("id") Long id);

    int deleteByDeviceUniqueId(@Param("deviceUniqueId") Long deviceUniqueId);

    int insert(WxqWorkGroupWelcome record);

    int insertSelective(WxqWorkGroupWelcome record);

    WxqWorkGroupWelcome selectById(@Param("id") Long id);

    int updateByIdSelective(WxqWorkGroupWelcome record);

    int updateById(WxqWorkGroupWelcome record);

    /**
     * 分页查询
     * @param page
     * @param query
     * @return
     */
    List<WxqWorkGroupWelcome> findByList(Page<WxqWorkGroupWelcome> page, @Param("query") WxqWorkGroupWelcomeQuery query);

    /**
     * 查询所有
     * @param query
     * @return
     */
    List<WxqWorkGroupWelcome> findByList(@Param("query") WxqWorkGroupWelcomeQuery query);
}